<template>
  <!-- 消息中心详情 -->
  <div class="message">
    <div class="header">
      <van-icon name="arrow-left" @click="leftClick" />
      <div class="center">消息详情</div>
      <div class="right">新增</div>
    </div>
    <div class="content">
      <ul>
        <li>
          <div class="left">
            <p>{{MesParticulars.type == 1 ? '系统通知' : '个人消息'}}</p>
            <p>发布人：<span>{{MesParticulars.sourceName}}</span></p>
          </div>
          <div class="right">
            <span>{{MesParticulars.createTime}}</span>
          </div>
        </li>
      </ul>
      <div class="bottom">
        <p>1.{{MesParticulars.msgDate}}</p>
      </div>
    </div>
  </div>
</template>

<script>
import { GetMesDetails } from "../raxios/api";
export default {
  data() {
    return {
        MesParticulars:{}
    };
  },
  components: {},
  methods: {
    leftClick() {
      this.$router.go(-1);
    },
  },
  created() {
    GetMesDetails(this.$route.query.id).then(res => {
      if (res.errCode == 0) {
        console.log(res.data);
        this.MesParticulars = res.data
      }
    });
  },
};
</script>
 
<style lang="less" scoped>
.message {
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #fff;
  z-index: 99;
  background-color: #f5f5f5;
  overflow: scroll;

}
.header {
  width: 100%;
  height: 0.5rem;
  line-height: 0.5rem;
  display: flex;
  justify-content: space-between;
  background-color: #1f3399;
  padding: 0 2%;
  box-sizing: border-box;
  color: #fff;
  .center {
    font-size: 0.16rem;
  }
  .van-icon {
    margin-top: 0.16rem;
    font-size: 0.18rem;
  }
  .right {
    color: #1f3399;
  }
}
.content {
  margin-top: 0.1rem;
  background-color: #fff;
  padding: 0.1rem 0.1rem 0 0.1rem;
  ul {
    
    margin-bottom: .2rem;
    li {
      display: flex;
      justify-content: space-between;
      .left {
        p {
          font-size: 0.16rem;
          &:nth-child(2) {
            color: #bfbfbf;
            margin-top: 0.1rem;
          }
        }
      }
      .right {
        margin-top: 0.1rem;
        color: #bfbfbf;
      }
    }
  }
  .bottom {
    //   height: 2.5rem;
    padding-bottom: .2rem;
    p {
      margin-bottom: .1rem;
      font-size: .16rem;
      color: #747474;
    }
  }
}
</style>
